# 基础镜像
FROM ubuntu:18.04

# 镜像创建者
MAINTAINER ubuntu-base Docker image "enovo458@126.com" author "drophair"

# 镜像更换国内镜像源(清华源)

RUN apt-get update
RUN apt-get install -y wget
RUN sed -i "s/ports.ubuntu.com/repo.huaweicloud.com/g" /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update
RUN apt-get install
RUN apt-get update --fix-missing
RUN apt-get autoremove && apt-get clean && apt-get install -f
RUN apt-get install -y openssh-server openssh-client
RUN /etc/init.d/ssh start
# RUN echo ps -e|grep ssh
RUN wget -P /etc/ssh/ -N https://gitee.com/drophair/docker-sh/raw/master/dependency/file/sshd_config
RUN service ssh restart

